package org.lc.stk.model.paper.attr;

import java.util.Date;
import java.util.List;

import org.hibernate.annotations.Comment;
import org.lc.stk.model.banks.Bank;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.ManyToMany;
import jakarta.persistence.Table;
import jakarta.persistence.Temporal;
import jakarta.persistence.TemporalType;

/**
 * 试卷模板，指向word模板文件
 */
@Entity
@Table(name = "paperTemplate")
@Comment("试卷模板，指向word模板文件")
public class PaperTemplate {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer id;

    /**
     * 模板名称
     */
    @Column
    @Comment("模板名称")
    private String name;

    /**
     * 路径
     */
    @Column
    @Comment("路径")
    private String path;

    @Column
    @Temporal(TemporalType.DATE)
    @Comment("创建日期")
    private Date createDate;

    @ManyToMany
    private List<Bank> banks;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public List<Bank> getBanks() {
        return banks;
    }
    
    public void setBanks(List<Bank> banks) {
        this.banks = banks;
    }

}
